import request from '@/utils/request'

// 查询重大事项列表
export function listFundMatters(query) {
  return request({
    url: '/matters/fundMatters/list',
    method: 'get',
    params: query
  })
}

// 查询重大事项详细
export function getFundMatters(id) {
  return request({
    url: '/matters/fundMatters/' + id,
    method: 'get'
  })
}

// 保存重大事项
export function saveFundMatters(data) {
  return request({
    url: '/matters/fundMatters/save',
    method: 'post',
    data: data
  })
}

// 删除重大事项
export function delFundMatters(id) {
  return request({
    url: '/matters/fundMatters/' + id,
    method: 'delete'
  })
}

// 导出重大事项
export function exportFundMatters(query) {
  return request({
    url: '/matters/fundMatters/export',
    method: 'get',
    params: query
  })
}
